package org.jxc.domain;

import java.io.Serializable;

public class SalesOrderProduct implements Serializable {
	private static final long serialVersionUID = -2717305872842507332L;
	private String id;
	private Integer amounts; //数量
	private Double discount; //折扣
	private Double price; //成本价
	private Double salesPrice; //销售价格
	private Double tax; //税率
	private Double lastPrice; //最终价格
	private String remark; //说明
	private Product product; //货品

	private SalesOrder salesOrder; //销售订单
	private ProductWarehouseStock stock; //某仓库的某产品库存

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getAmounts() {
		return amounts;
	}

	public void setAmounts(Integer amounts) {
		this.amounts = amounts;
	}

	public Double getDiscount() {
		return discount;
	}

	public void setDiscount(Double discount) {
		this.discount = discount;
	}

	public Double getSalesPrice() {
		return salesPrice;
	}

	public void setSalesPrice(Double salesPrice) {
		this.salesPrice = salesPrice;
	}

	public Double getTax() {
		return tax;
	}

	public void setTax(Double tax) {
		this.tax = tax;
	}

	public Double getLastPrice() {
		return lastPrice;
	}

	public void setLastPrice(Double lastPrice) {
		this.lastPrice = lastPrice;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public SalesOrder getSalesOrder() {
		return salesOrder;
	}

	public void setSalesOrder(SalesOrder salesOrder) {
		this.salesOrder = salesOrder;
	}

	public ProductWarehouseStock getStock() {
		return stock;
	}

	public void setStock(ProductWarehouseStock stock) {
		this.stock = stock;
	}

	/**
	 * 成本价
	 * @return
	 */
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
}
